//
//  UIViewController+Tracking.m
//  SmartEstateCC
//
//  Created by 初唐科技 on 2018/1/30.
//  Copyright © 2018年 pretang. All rights reserved.
//

#import "UIViewController+Tracking.h"
#import "UINavigationController+FDFullscreenPopGesture.h"
#import "WRNavigationBar.h"

@implementation UIViewController (Tracking)

- (void)setInteractivePopDisabled:(BOOL)interactivePopDisabled
{
    self.fd_interactivePopDisabled = interactivePopDisabled;
}
- (BOOL)interactivePopDisabled
{
    return self.fd_interactivePopDisabled;
}

- (void)setPrefersNavigationBarHidden:(BOOL)prefersNavigationBarHidden
{
    self.fd_prefersNavigationBarHidden = prefersNavigationBarHidden;
}
- (BOOL)prefersNavigationBarHidden
{
    return self.fd_prefersNavigationBarHidden;
}

- (void)setPrefersNavigationBarBarTintColor:(UIColor *)prefersNavigationBarBarTintColor
{
    [self wr_setNavBarBarTintColor:prefersNavigationBarBarTintColor];
}
- (UIColor *)prefersNavigationBarBarTintColor
{
    return self.wr_navBarBarTintColor;
}

- (void)setPrefersNavigationBarTintColor:(UIColor *)prefersNavigationBarTintColor
{
    [self wr_setNavBarTintColor:prefersNavigationBarTintColor];
}
- (UIColor *)prefersNavigationBarTintColor
{
    return self.wr_navBarTintColor;
}

- (void)setPrefersNavigationBarTitleColor:(UIColor *)prefersNavigationBarTitleColor
{
    [self wr_setNavBarTitleColor:prefersNavigationBarTitleColor];
}
- (UIColor *)prefersNavigationBarTitleColor
{
    return self.wr_navBarTitleColor;
}

- (void)setPrefersNavigationBarBackgroundAlpha:(CGFloat)prefersNavigationBarBackgroundAlpha
{
    [self wr_setNavBarBackgroundAlpha:prefersNavigationBarBackgroundAlpha];
}
- (CGFloat)prefersNavigationBarBackgroundAlpha
{
    return self.wr_navBarBackgroundAlpha;
}

- (void)setPrefersNavigationBarShadowHidden:(BOOL)prefersNavigationBarShadowHidden
{
    [self wr_setNavBarShadowImageHidden:prefersNavigationBarShadowHidden];
}
- (BOOL)prefersNavigationBarShadowHidden
{
    return self.wr_navBarShadowImageHidden;
}

- (void)setPrefersStatusBarStyle:(UIStatusBarStyle)prefersStatusBarStyle
{
    [self wr_setStatusBarStyle:prefersStatusBarStyle];
}
- (UIStatusBarStyle)prefersStatusBarStyle
{
    return self.wr_statusBarStyle;
}

@end
